#!/bin/bash
echo "killing existing java process..."
if [[ `ps -ef | grep java | grep -v grep | awk '{print $2}'` -eq "" ]]; then
        ps -ef | grep java | grep -v grep | awk '{print $2}' | xargs kill -9
fi
